#
# This is a recommended file for ITK dashboard submissions
# The generated file will use the current settings in the CMakeCache.txt file
# The file should be copied, edited if necessary and moved to another location
#
# This file was generated from
# @ITK_SOURCE_DIR@/CMake/itkSampleBuildTest.cmake
#

######################
# Set the Dashboard to one of Nightly, Continuous or Experimental
#
set(DASHBOARD Nightly)
set(DASHBOARD Continuous)
set(DASHBOARD Experimental)

######################
# Set the Default Build Type to one of Release, Debug, RelWithDebInfo
# or MinSizeRel
#
set(DEFAULT_BUILD_TYPE "Debug")
set(DEFAULT_BUILD_TYPE "RelWithDebInfo")
set(DEFAULT_BUILD_TYPE "MinSizeRel")
set(DEFAULT_BUILD_TYPE "Release")

if("@CMAKE_BUILD_TYPE@" STREQUAL "")
  set(BUILD_TYPE ${DEFAULT_BUILD_TYPE})
else("@CMAKE_BUILD_TYPE@" STREQUAL "")
  set(BUILD_TYPE @CMAKE_BUILD_TYPE@)
endif("@CMAKE_BUILD_TYPE@" STREQUAL "")


# These are the the locations of the source and binary directory
set(CTEST_SOURCE_DIRECTORY "@ITK_SOURCE_DIR@")
set(CTEST_BINARY_DIRECTORY "@ITK_BINARY_DIR@")

# The ctest command to use for running the dashboard
set(CTEST_COMMAND
   "@CMAKE_COMMAND@ -P \"${CTEST_BINARY_DIRECTORY}/CMake/RemoveTemporaryFiles.cmake\""
   "@CMAKE_CTEST_COMMAND@ -D ${DASHBOARD} -A \"${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}\""
)

# CMake/RemoveTemporaryFiles.cmake must exist before the CTEST_COMMAND runs
if(NOT EXISTS ${CTEST_BINARY_DIRECTORY}/CMake/RemoveTemporaryFiles.cmake)
  set(CTEST_CMAKE_COMMAND "@CMAKE_COMMAND@")
endif(NOT EXISTS ${CTEST_BINARY_DIRECTORY}/CMake/RemoveTemporaryFiles.cmake)

# CMakeCache.txt must exist before the CTEST_COMMAND runs
if(NOT EXISTS ${CTEST_BINARY_DIRECTORY}/CMakeCache.txt)
  set(CTEST_CMAKE_COMMAND "@CMAKE_COMMAND@")
endif(NOT EXISTS ${CTEST_BINARY_DIRECTORY}/CMakeCache.txt)

# Specify how long to run the continuous in minutes
if(${DASHBOARD} STREQUAL "Continuous")
  set(CTEST_CONTINUOUS_DURATION 1080)
  set(CTEST_CONTINUOUS_MINIMUM_INTERVAL 15)
endif(${DASHBOARD} STREQUAL "Continuous")

# Set defaults
set(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY FALSE)
set(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY_ONCE FALSE)

# For Nightly builds, this should be TRUE
if(${DASHBOARD} STREQUAL "Nightly")
  set(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE)
else(${DASHBOARD} STREQUAL "Nightly")
  set(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY FALSE)
endif(${DASHBOARD} STREQUAL "Nightly")

# For Continuous builds. this should be TRUE
if(${DASHBOARD} STREQUAL "Continuous")
  set(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY_ONCE TRUE)
else(${DASHBOARD} STREQUAL "Continuous")
  set(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY_ONCE FALSE)
endif(${DASHBOARD} STREQUAL "Continuous")

# For Experimental builds, these should be FALSE
if(${DASHBOARD} STREQUAL "Experimental")
  set(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY FALSE)
  set(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY_ONCE FALSE)
endif(${DASHBOARD} STREQUAL "Experimental")

# This is the initial cache to use for the binary tree, be careful to escape
# any quotes inside of this string if you use it
set(CTEST_INITIAL_CACHE "
SITE:STRING=@SITE@
BUILDNAME:STRING=@BUILDNAME@
CVSCOMMAND:FILEPATH=@CVSCOMMAND@
CVS_UPDATE_OPTIONS:STRING=-d -A -P

CMAKE_C_FLAGS_RELEASE:STRING=@CMAKE_C_FLAGS_RELEASE@
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=@CMAKE_C_FLAGS_RELWITHDEBINFO@
CMAKE_CXX_FLAGS_RELEASE:STRING=@CMAKE_CXX_FLAGS_RELEASE@
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=@CMAKE_CXX_FLAGS_RELWITHDEBINFO@

TCL_TCLSH:FILEPATH=@TCL_TCLSH@
CMAKE_BUILD_TOOL:INTERNAL=@CMAKE_BUILD_TOOL@
CMAKE_MAKE_PROGRAM:FILEPATH=@CMAKE_MAKE_PROGRAM@
CMAKE_GENERATOR:INTERNAL=@CMAKE_GENERATOR@
CMAKE_CXX_COMPILER:FILEPATH=@CMAKE_CXX_COMPILER@
CMAKE_CXX_FLAGS:STRING=@CMAKE_CXX_FLAGS@
CMAKE_C_COMPILER:FILEPATH=@CMAKE_C_COMPILER@
CMAKE_C_FLAGS:STRING=@CMAKE_C_FLAGS@
CMAKE_CONFIGURATION_TYPES:STRING=${BUILD_TYPE}
CMAKE_BUILD_TYPE:STRING=${BUILD_TYPE}

BUILD_SHARED_LIBS:BOOL=@BUILD_SHARED_LIBS@
BUILD_TESTING:BOOL=@BUILD_TESTING@
BUILD_EXAMPLES:BOOL=@BUILD_EXAMPLES@

ITK_USE_PATENTED:BOOL=@ITK_USE_PATENTED@
ITK_USE_REVIEW:BOOL=@ITK_USE_REVIEW@
ITK_USE_CONCEPT_CHECKING:BOOL=@ITK_USE_CONCEPT_CHECKING@

ITK_USE_SYSTEM_GDCM:BOOL=@ITK_USE_SYSTEM_GDCM@
ITK_USE_SYSTEM_JPEG:BOOL=@ITK_USE_SYSTEM_JPEG@
ITK_USE_SYSTEM_PNG:BOOL=@ITK_USE_SYSTEM_PNG@
ITK_USE_SYSTEM_TIFF:BOOL=@ITK_USE_SYSTEM_TIFF@
ITK_USE_SYSTEM_VXL:BOOL=@ITK_USE_SYSTEM_VXL@
ITK_USE_SYSTEM_ZLIB:BOOL=@ITK_USE_SYSTEM_ZLIB@

ITK_LEGACY_REMOVE:BOOL=@ITK_LEGACY_REMOVE@
ITK_LEGACY_SILENT:BOOL=@ITK_LEGACY_SILENT@
GDCM_LEGACY_REMOVE:BOOL=@GDCM_LEGACY_REMOVE@
GDCM_LEGACY_SILENT:BOOL=@GDCM_LEGACY_SILENT@

ITK_USE_KWSTYLE:BOOL=@ITK_USE_KWSTYLE@
KWSTYLE_EXECUTABLE:PATH=@KWSTYLE_EXECUTABLE@
KWSTYLE_USE_VIM_FORMAT:BOOL=@KWSTYLE_USE_VIM_FORMAT@
KWSTYLE_USE_MSVC_FORMAT:BOOL=@KWSTYLE_USE_MSVC_FORMAT@

ITK_CSWIG_JAVA:BOOL=@ITK_CSWIG_JAVA@
ITK_CSWIG_PYTHON:BOOL=@ITK_CSWIG_PYTHON@
ITK_CSWIG_TCL:BOOL=@ITK_CSWIG_TCL@
ITK_USE_MINC2:BOOL=@ITK_USE_MINC2@

USE_WRAP_ITK:BOOL=@USE_WRAP_ITK@
USE_FFTWD:BOOL=@USE_FFTWD@
USE_FFTWF:BOOL=@USE_FFTWF@
")

# Set any extra envionment variables here
set(CTEST_ENVIRONMENT
  )
